//
//  AddTraineesCell.m
//  CoachsBook
//
//  Created by huiyong li on 2022/8/22.
//

#import "AddTraineesCell.h"
@interface AddTraineesCell()
@property(nonatomic,strong) UILabel *titleLabel;
@property (nonatomic, strong) UIView *lineView;
@end
@implementation AddTraineesCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier

{
    if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier])
    {
        [self setupUI];
        self.contentView.backgroundColor = rgba(255, 255, 255, 1);
    }
    return self;
}

- (void)setupUI
{

    self.lineView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, APPwidth, 10)];
    self.lineView.backgroundColor = rgba(245, 245, 250, 1);
    [self.contentView addSubview:self.lineView];
    
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(16, 20, 150, 30)];
    self.titleLabel.font = kPingFangRegular(14);
    self.titleLabel.textColor = rgba(51, 51, 51, 1);
    self.titleLabel.text = @"参加考试学员";
    [self.contentView addSubview:self.titleLabel];

    
    self.addBut = [[UIButton alloc]initWithFrame:CGRectMake(APPwidth-16-70, 18, 70, 34)];
    [self.addBut setImage:[UIImage imageNamed:@"mine_addTrainees"] forState:UIControlStateNormal];
    [self.addBut setTitleColor:rgba(22, 120, 255, 1) forState:UIControlStateNormal];
    [self.addBut setTitle:@"添加" forState:UIControlStateNormal];
    self.addBut.titleLabel.font = kPingFangRegular(14);
    self.addBut.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 6);
    self.addBut.titleEdgeInsets = UIEdgeInsetsMake(0, 6, 0, 0);
    [self.contentView addSubview:self.addBut];
    
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
